import VueRouter from 'vue-router';
import Vue from 'vue';

const Login = () => import('../components/Login');
const Admin = () => import('../components/Admin');
const TableAll = () => import('../components/TableAll');
const TableNoHand = () => import('../components/TableNoHand');

Vue.use(VueRouter)

export default new VueRouter({
  routes: [
    {
      path: '',
      redirect: '/login'
    },
    {
      path: '/login',
      component: Login,
      meta: {
        title: '登录',
      }
    },
    {
      path:'/admin',
      component: Admin,
      meta: {
        title: '主页'
      }
    },
    {
      path:'/tableall',
      component:TableAll,
      meta: {
        title: '已打卡名单'
      }
    },
    {
      path:'/talenohand',
      component:TableNoHand,
      meta: {
        title: '未打卡名单'
      }
    }
  ]
});